• Parameters

    • input: {
          funcInput: Partial<BuyInput>;
          contract: string;
          state?: State;
      }
      • funcInput: Partial<BuyInput>
      • contract: string
      • Optional state?: State

    Returns Promise<{
        contract: string;
        funcInput: {
            txId: any;
            function?: "buy";
            positionType?: "support" | "oppose";
            price?: number;
            fee?: number;
            qty?: number;
        };
        state?: State;
    }>